package com.sp1.app.dao.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.sp1.app.dao.BaseDao;
import com.sp1.app.dao.UserDao;
import com.sp1.app.entry.UserEntry;

@Repository
public class UserDaoImpl extends BaseDao  implements UserDao {
	
	public List<UserEntry> selectUser() throws SQLException {
		try {
			return (List<UserEntry>) getSqlMapClientTemplate().queryForList(
					"UserEdm.selectAllUsers");
		} catch (org.springframework.dao.DataAccessException e) {
			e.printStackTrace();
		}
		return null;
	}
}
